package io.xiaojl.xj2ee.modules.sys.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;

import io.xiaojl.xj2ee.modules.sys.entity.SysUserRoleEntity;

@Mapper
public interface SysUserRoleEntityMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SysUserRoleEntity record);

    int insertSelective(SysUserRoleEntity record);

    SysUserRoleEntity selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysUserRoleEntity record);

    int updateByPrimaryKey(SysUserRoleEntity record);

	/**  
	 * <p>Title: selectRoleIdByUserId</p>  
	 *
	 * <p>Description: </p>  
	 *
	 * @param userId
	 * @return  
	 */ 
	List<Long> selectRoleIdByUserId(Long userId);

	/**  
	 * <p>Title: deleteBatch</p>  
	 *
	 * <p>Description: </p>  
	 *
	 * @param roleIds
	 * @return  
	 */ 
	int deleteBatch(Long[] roleId);
}